// cbio experiment

console.log('cBio :-)');

cBio={
	call:function(q,cb){
		if(!cb){cb='cBio.callback'}
		var url = "http://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20html%20where%20url%3D'http://www.cbioportal.org/public-portal/webservice.do"; // proxy
		url +="?"+encodeURIComponent(q)+"'%0A&callback="+cb;
		var ans = jQuery.get(url);
		console.log('calling "'+url+'", results:');
		//console.log(ans);
	},
	callback:function(x){console.log(x.query.results.body.p)}
	
}

